<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>公共代码</title>
</head>
<body>
<div>

    <div th:fragment="fragmentName" id="fragmentId">
        <span>公共代码片段</span>
    </div>

    <div th:fragment="authorInfo(name,phone)">
        作者：<span th:text="${name}"></span>
        联系方式：<span th:text="${phone}"></span>
    </div>

</div>
</body>
</html>